﻿<basics:ChildWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
	xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:System_Windows_Controls_Primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls"
	mc:Ignorable="d" xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
	x:Class="TheGameClient.DlgCreateNewFile"
	Title="Create File" Style="{StaticResource DefaultDialogStyle}"><!---->
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<Button x:Name="OKButton" Content="OK" Click="OkButtonClick" Width="75" Height="23" HorizontalAlignment="Right" Grid.Row="1" />
		<Button x:Name="CancelButton" Content="Cancel" Click="CancelButtonClick" Width="75" Height="23" HorizontalAlignment="Right"  Margin="0,0,79,0" Grid.Row="1" />
		<StackPanel>
			<StackPanel x:Name="stkFileType" Orientation="Horizontal" Margin="0,0,0,5">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110"><Run Text="File type"/><Run Text=":"/></TextBlock>
				<ComboBox x:Name="cmbFileType" Width="125" DisplayMemberPath="" SelectionChanged="CmbFileTypeSelectionChanged"/>
			</StackPanel>
			<StackPanel x:Name="stkFileContent" Margin="0,0,0,5">
				<StackPanel x:Name="stkTextFileContent" Orientation="Horizontal" Visibility="Collapsed">
					<TextBlock VerticalAlignment="Top" TextWrapping="Wrap" Width="110" Text="File content:" HorizontalAlignment="Left" Margin="0,0,5,0"/>
					<TextBox x:Name="txtFileContent" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" Width="250" IsEnabled="False" Height="100" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
				</StackPanel>
				<StackPanel x:Name="stkProgramFileContent" Visibility="Collapsed">
					<StackPanel Margin="0,0,0,5" Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110" Text="Original program:" HorizontalAlignment="Left"/>
						<ComboBox x:Name="cmbPrograms" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250" SelectionChanged="CmbProgramsSelectionChanged" d:LayoutOverrides="VerticalAlignment"/>
					</StackPanel>
					<StackPanel x:Name="stkProgramVersion" Orientation="Horizontal" Margin="0,0,0,5" Visibility="Collapsed">
						<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110" Text="Program Version:" HorizontalAlignment="Left"/>
						<inputToolkit:NumericUpDown x:Name="numProgramVersion" Width="75" Maximum="10" d:LayoutOverrides="Height"/>
					</StackPanel>
				</StackPanel>
			</StackPanel>
			<StackPanel x:Name="stkFileName" Margin="0,0,0,5" Orientation="Horizontal">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" Width="110" Text="File name:" TextWrapping="Wrap"/>
				<TextBox x:Name="txtFileName" Margin="0,0,5,0" VerticalAlignment="Center" Width="250" TextWrapping="Wrap" SelectionForeground="{x:Null}" Background="{x:Null}"/>
			</StackPanel>
			<StackPanel x:Name="stkFileSize" Orientation="Horizontal" Margin="0,0,0,5">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110" Text="File size:"/>
				<inputToolkit:NumericUpDown x:Name="numFileSize" VerticalAlignment="Center" Width="75" d:LayoutOverrides="Height" Maximum="100" Margin="0,0,5,0" Minimum="1" Value="1"/>
				<TextBlock VerticalAlignment="Center" Text="Unit" TextWrapping="Wrap"/>
			</StackPanel>
			<StackPanel x:Name="stkEncryption" Orientation="Horizontal" Margin="0,0,0,5">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110"><Run Text="Encryptionlevel"/><Run Text=":"/></TextBlock>
				<inputToolkit:NumericUpDown x:Name="numEncryptionLevel" VerticalAlignment="Center" Width="75" d:LayoutOverrides="Height" Maximum="7"/>
			</StackPanel>
			<StackPanel x:Name="stkCompression" Orientation="Horizontal" Margin="0,0,0,5">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110" Text="Compressionlevel:"/>
				<inputToolkit:NumericUpDown x:Name="numCompressionLevel" VerticalAlignment="Center" Width="75" d:LayoutOverrides="Height" Maximum="7"/>
			</StackPanel>
			<StackPanel x:Name="stkFileTime" Orientation="Horizontal" Margin="0,0,0,5">
				<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" TextWrapping="Wrap" Width="110" Text="File time:"/>
				<TextBox x:Name="txtFileDate" Text="2009/12/24 18:30:59" TextWrapping="Wrap" Width="150" Background="{x:Null}"/>
			</StackPanel>
		</StackPanel>
	</Grid>
</basics:ChildWindow>